package org.jeecg.config.ocr;

import org.jeecg.common.util.ocr.OcrBootIdentityUtils;
import org.jeecg.common.util.ocr.OcrBootPlateUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OcrBootIdentityConfiguration {

    @Value("${jeecg.ocr.identity.host-identity}")
    private String host;
    @Value("${jeecg.ocr.identity.appcode-identity}")
    private String appcode;
    @Value("${jeecg.ocr.identity.path-identity}")
    private String path;

    @Bean
    public void initOcrBootIdentityConfiguration(){
        OcrBootIdentityUtils.setHost(host);
        OcrBootIdentityUtils.setAppcode(appcode);
        OcrBootIdentityUtils.setPath(path);
    }
}
